package cn.mw.cmdb.entity;

import cn.mw.components.mongodb.entity.CriteriaOpsType;
import org.springframework.data.mongodb.core.query.Criteria;

public class PropertyTypeContract extends PropertyType<PropertyTypeContract, Object> {
    public static final String ID = "contract";

    public PropertyTypeContract() {
        setId(ID);
        setName("合同属性");
        setValueTip("请上传文件");
        setSortNum(26);
    }

    public boolean validateValue(Object value, PropertyTypeRef propertyTypeRef) throws Exception {
        return true;
    }

    @Override
    public Criteria doCriteria(CriteriaOpsType opsType, String name, Object value) {
        return null;
    }

    @Override
    public CriteriaOpsType getDefaultCriteriaOpsType() {
        return null;
    }

    @Override
    public PropertyTypeContract newObj() {
        return null;
    }

    @Override
    public void refresh() {

    }
}
